define(() => {
    return function (data, obox) {
        let str = "";
        data.forEach(val => {
            str += `                <li index="${val.proId}">
                                            <div class="p-img">
                                                <a href="../Detailpage.html?id=${val.proId}">
                                                    <img class="lazy" src="${val.img}" style="display: inline;">
                                                </a>
                                            </div>
                                            <div class="p-price text-color">
                                                <i>${val.price}</i>
                                            </div>
                                            <div class="p-name">
                                                <a href="../Detailpage.html?id=${val.proId}">${val.proName}</a>
                                            </div>
                                            <div class="p-icons">
                                                <i class="icons icons-hot">${val.BestSellers}</i>  
                                                <i class="icons icons-new">${val.New}</i> 		            
                                            </div>
                                        <input type="button" class="plus" value="加入购物车">
                                    </li>`
        });
        obox.html(str);
    }
})